package cn.com.cnxfs.relaxchat.service.impl;

import cn.com.cnxfs.relaxchat.dao.SwapDao;
import cn.com.cnxfs.relaxchat.entity.Swap;
import cn.com.cnxfs.relaxchat.service.ISwapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SwapService implements ISwapService {
    @Autowired
    private SwapDao swapDao;

    @Override
    public List<Swap> receive(int friend) {
        return swapDao.receive(friend);
    }

    @Override
    public void add(int uid, int friend, String var) {
        swapDao.add(uid,friend,var);
    }

    @Override
    public void del(String var) {
        swapDao.del(var);
    }

}
